package com.hrms.doctor.service;

import com.hrms.doctor.domain.Doctor;
import com.hrms.doctor.domain.DoctorPatient;
import com.hrms.doctor.domain.vo.DoctorPatientVo;
import com.hrms.doctor.domain.vo.DoctorVo;

import java.util.List;

public interface DoctorService {
    //返回所有医生
    public  List<Doctor> selectDoctor(String name, String phone);
    //新增医生
    Integer insertDoctor(Doctor doctor);
    //批量删除
    Integer deleteById(List<Long> list);
    //回显
    Doctor selectDoctorById(Long id);
    //修改
    Integer update(Doctor doctor);
    //增加患者
    Integer insertPatient(DoctorPatient doctorPatient);
    //根据医生ID查找话患者ID
    List<DoctorPatientVo> selectDoctorPatient(Long id,String name,String phone);
    //根据医生ID和患者ID删除对应
    Integer deletePatientById(Long id,List<Long> list);
    //删除医生时删除医生患者表
    void deleteDoctorPatient(List<Long> list);

    List<DoctorVo> selectDoctorByName(String name,String deptName);
}
